<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <!-- iPhone, iPad and Android specific settings -->
        <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1;">
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
        <title><?php echo Yii::app()->name; ?> - Administrator Login</title>

        <!-- Create an icon and splash screen for iPhone and iPad -->
        <link rel="apple-touch-icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/login/iOS_icon.png">
        <link rel="apple-touch-startup-image" href="<?php echo Yii::app()->request->baseUrl; ?>/images/login/iOS_startup.png">

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/login/all.css" media="screen">
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/login/grid.css" media="screen">

        <!--[if IE 6]><link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/login/ie6.css" media="screen" /><![endif]-->
        <!--[if IE 7]><link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/login/ie.css" media="screen" /><![endif]-->
        
        <!-- Load JQuery UI -->
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/login/jqueryui/1.8/jquery-ui.min.js"></script>

        <!-- Load Interface Plugins -->
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/login/uniform/jquery.uniform.js"></script>

        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/login/iPhone/jquery.iphoneui.js"></script>

        <!-- This file configures the various jQuery plugins for Adminica. Contains links to help pages for each plugin. -->
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/login/adminica/adminica_ui.js"></script>
    </head>
    <body>
        <?php
        Yii::app()->getClientScript()->scriptMap = array(
            'jquery.js' => Yii::app()->request->baseUrl . '/js/login/jquery/1.5.1/jquery.min.js',
        );

        $clientScript = Yii::app()->clientScript;
        $clientScript->registerScriptFile(Yii::app()->request->baseUrl . '/js/login/jquery/1.5.1/jquery.min.js', CClientScript::POS_HEAD);


        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'login-form',
            'enableClientValidation' => true,
            'focus' => array($model, 'username'),
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
                ));
        ?>
        <div id="login_spacer"></div>
        <?php echo $form->error($model, 'invalid', array('id' => 'error_box', 'class' => 'round_all clearfix')); ?>
        <div id="login_box" class="round_all clearfix">

            <label class="fields"><strong><?php echo $form->labelEx($model, 'username'); ?></strong><?php echo $form->textField($model, 'username', array('class' => 'indent round_all')); ?></label>
            <label class="fields"><strong><?php echo $form->labelEx($model, 'password'); ?></strong><?php echo $form->passwordField($model, 'password', array('class' => 'indent round_all')); ?></label>
            <button name="Login" class="button_colour round_all"><img width="24" height="24" alt="Locked 2" src="<?php echo Yii::app()->request->baseUrl; ?>/images/login/locked_2.png"><span>Login</span></button>
            <div id="bar" class="round_bottom">
                Copyright &copy 2011. All rights reserved.
            </div>
            <a href="http://www.esoftdream.net" target="_blank" id="login_logo"><span>Esoftdream</span></a>

        </div>
        <?php $this->endWidget(); ?>
        
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/login/livevalidation/livevalidation_standalone.js"></script>
        <script type="text/javascript">
  
            // Validation
            var username = new LiveValidation('login_form_username');
            username.add( Validate.Presence );

            var password = new LiveValidation('login_form_password');
            password.add( Validate.Presence );

        </script>
        
    </body>
</html>